<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Spring Boot - Web - Person</title>
    <link th:href="@{/person.css}" rel="stylesheet"/>
</head>
<body>
    <div>
        <span th:text="${single.name}"></span>
    </div>

    <div th:if="${not #lists.isEmpty(persons)}">
        <ul>
            <li th:each="person:${persons}">
                <span th:text="${person.name}"/>,&nbsp;<span th:text="${person.age}"/>
            </li>
        </ul>
    </div>

    <script th:src="@{/person.js}" type="text/javascript"></script>
</body>
</html>